package com.education.dao;

import com.education.pojo.Function;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FunctionMapper {
    int deleteByPrimaryKey(Integer fId);

    int insert(Function record);

    int insertSelective(Function record);

    Function selectByPrimaryKey(Integer fId);

    int updateByPrimaryKeySelective(Function record);

    int updateByPrimaryKey(Function record);

    Function selectByFunctionId(@Param("fId") Integer fId);

    List<Function> selectChildFunctionByParentId(@Param("parentId") Integer parentId);

    List<Function> selectRootNode();

    Integer selectFidByURL(@Param("url") String url);

}